/*
 * GeoVISTA Center (Penn State, Dept. of Geography)
 * Copyright (c), 2003-2011,  Jin Chen and Alan M. MacEachren, GeoVISTA Center, Penn State University
 * Licensed under Simplified BSD License
 *
 *   
 * @Original Author: jin Chen
 * @date: Apr 11, 2005$
 * @version: 1.0
 */
package edu.psu.geovista.app.visualclassifier.classify.v2.control;

import edu.psu.geovista.app.visualclassifier.classify.v2.DefaultESVisualClassifier;

import java.awt.*;

public class UniColorInvertor extends BasicColorInvertor {
    protected Color[] uniColors; // 

    public UniColorInvertor(DefaultESVisualClassifier vc) {
        super(vc);
    }

    public void invertColor() {
        Color[] inversedColor = BasicColorInvertor.invertColor(this.getUniColors() );
        this.vc.displayColors(inversedColor);
        this.setUniColors(inversedColor);
    }

    public Color[] getUniColors() {
        return uniColors;
    }

    public void setUniColors(Color[] uniColors) {
        this.uniColors = uniColors;
    }
}
